home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1988 September & October
/
rerun-1988-09-10a.d64
/
joystick prg#2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
759b
|
21 lines
10 rem demonstration - kenny lawson
20 a$=" ":b$=a$+" ":forx=1to15:an$=an$+chr$(17):next:an$=chr$(19)+an$
30 poke646,7:printchr$(147);:print"file"b$"copy"b$"cut"b$"paste":print
40 print"disk"b$"view"b$"help"b$"print":forx=1to21:print:next
50 print"transfer"a$"data"a$"time"a$"quit"chr$(19)
60 c$="":poke53281,6:poke53280,14:sys680
70 p=1024+(int((peek(53249)-50)/8)*40)+(int((peek(53248)+256*peek(53264))/8)-3)
80 ifp<1027thenc$="file"
90 ifp>1034andp<1039thenc$="copy"
100 ifp>1045andp<1049thenc$="cut"
110 ifp>1056andp<1061thenc$="paste"
120 ifp>1103andp<1108thenc$="disk"
130 ifp>1114andp<1119thenc$="view"
140 ifp>1125andp<1130thenc$="help"
150 ifp>1136andp<1142thenc$="print"
160 ifp>1983andp<1992thenc$="transfer"
170 ifp>1996andp<2001thenc$="data"
180 ifp>2005andp<2010thenc$="time"
190 ifp>2015andp<2019thenc$="quit"
200 printan$"you called for [157][157][157][157][157][157][157][157]"c$:ifc$<>"quit"then60